<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div id="main-content">
	<div class='title'>Form Tambah Kantor</div>
	
	<?php echo form_open('con_kantor/tambah');?>
	<table width='100%'> 
		<tr>
			<td>Kode Kantor</td>
			<td>:</td>
			<td>
			<?php echo form_input('kd_kantor',set_value('kd_kantor'));?>
			<?php echo form_error('kd_kantor');?>
			</td>
		</tr>
		<tr>
			<td>Nama Kantor</td>
			<td>:</td>
			<td>
			<?php 
			$propnmkantor = array(
			'name' =>'nama_kantor',
			'id' => 'nama_kantor',
			'size' =>'50',
			);
			//echo form_input($propnmkantor,set_value('nama_kantor'));
			echo form_input('nama_kantor',set_value('nama_kantor'));?>
			<?php echo form_error('nama_kantor');?>
			</td>
		</tr>
		<tr>
			<td>Alamat</td>
			<td>:</td>
			<td>
			<?php echo form_input('alamat',set_value('alamat'));?>
			<?php echo form_error('alamat');?>
			</td>
		</tr>
		<tr>
			<td>Kota</td>
			<td>:</td>
			<td>
			<?php echo form_input('kota',set_value('kota'));?>
			<?php echo form_error('kota');?>
			</td>
		</tr>
		<tr>
			<td>Kode Pos</td>
			<td>:</td>
			<td>
			<?php echo form_input('kodepos',set_value('kodepos'));?>
			<?php echo form_error('kodepos');?>
			</td>
		</tr>
		<tr>
			<td>No Telepon</td>
			<td>:</td>
			<td>
			<?php echo form_input('telp',set_value('telp'));?>
			<?php echo form_error('telp');?>
			</td>
		</tr>
		<tr>
			<td>Faximile</td>
			<td>:</td>
			<td>
			<?php echo form_input('fax',set_value('fax'));?>
			<?php echo form_error('fax');?>
			</td>
		</tr>
		<tr>
			<td>Website</td>
			<td>:</td>
			<td>
			<?php echo form_input('website',set_value('website'));?>
			<?php echo form_error('website');?>
			</td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td>
			<?php echo form_submit('submit','Simpan');?>
			</td>
		</tr>
	</table>
	<?php echo form_close();?>
</div>